﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NLBS.Entity
{
    public class Widget
    {
        private int _widgetID;

        public virtual int WidgetID
        {
            get { return _widgetID; }
            set { _widgetID = value; }
        }

        private string _name;

        public virtual string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _title;

        public virtual string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        private bool _hidden;

        public virtual bool Hidden
        {
            get { return _hidden; }
            set { _hidden = value; }
        }

        private int _type;
        /// <summary>
        /// 0 System,1 Developer,2 User
        /// </summary>
        public virtual int Type
        {
            get { return _type; }
            set { _type = value; }
        }

        private int _order;

        public virtual int Order
        {
            get { return _order; }
            set { _order = value; }
        }

        private int _rate;

        public virtual int Rate
        {
            get { return _rate; }
            set { _rate = value; }
        }

        private DateTime _installTime;

        public virtual DateTime InstallTime
        {
            get { return _installTime; }
            set { _installTime = value; }
        }

        private bool _isInstall;

        public virtual bool IsInstall
        {
            get { return _isInstall; }
            set { _isInstall = value; }
        }

        private bool _isSystem;

        public virtual bool IsSystem
        {
            get { return _isSystem; }
            set { _isSystem = value; }
        }

        private string _content;

        public virtual string Content
        {
            get { return _content; }
            set { _content = value; }
        }
    }

    public enum WidgetType
    {
        /// <summary>
        /// define by System
        /// </summary>
        System,
        /// <summary>
        /// define by third developer
        /// </summary>
        Developer,
        /// <summary>
        /// define by user
        /// </summary>
        User
    }
}
